<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>layui</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" >
    <script th:src="@{/layui/layui.js}" charset="utf-8"></script>

</head>
<body>

<table class="layui-hide" id="test"></table>
<script th:inline="none">
    layui.use('table', function(){
        var table = layui.table;

        table.render({
            elem: '#test'
            ,url:'/stu/list'
            ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
            ,cols: [[
                {field:'uuid', width:80, title: 'ID', sort: true}
                ,{field:'name', width:80, title: '姓名'}
                ,{field:'qq_no', width:80, title: 'QQ号'}
                ,{field:'wechat_no', width:80, title: '微信号'}
                ,{field:'wechat_mark', width:120, title: '微信备注'}
                ,{field:'add_wechat_date', width:160, title: '添加微信日期'}
            ]]
        });
    });
</script>
</body>
</html>
